#define _CRT_SECURE_NO_WARNINGS  1

#include<stdio.h>


int main()
{
	int i = 1;
	int j = 1;
	int n = 0;
	scanf("%d", &n);
	for (i = 0; i < n/2; i++)
	{
		for (j = 0; j < n/2 - 1 - i; j++)
		{
			printf(" ");
		}
		for (j = 0; j <2*i+1; j++)
		{			
			printf("*");
		}
		printf("\n");
	}
	for (i = 0; i < n/2 - 1; i++)
	{
		for (j = 0; j <= i; j++)
		{
			printf(" ");
		}
		for (j = 0; j < 2 * (n/2 - 1 - i) - 1; j++)
		{
			printf("*");
		}
		printf("\n");

	}
	return 0;
}